package
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.ui.Mouse;

	[SWF(width = 800, height = 600, frameRate = 30, backgroundColor = 0x000000)]
	public class testMouseInteractionDeco extends Sprite
	{
		private var customMouse:mouseClip;
		public function testMouseInteractionDeco()
		{
			super();
			Mouse.hide();
			
			this.customMouse = new mouseClip();
			this.addChild(this.customMouse);
			
			this.stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
			this.stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
		}
		
		private function onMouseMove(e:MouseEvent):void
		{
			this.customMouse.x = this.mouseX;
			this.customMouse.y = this.mouseY;
		}
		
		private function onMouseUp(e:MouseEvent):void
		{
			this.customMouse.play();
		}
		
	}
}